package com.king.pattem.threadpool;

/**
 * @author taomk
 * @version 1.0
 * @since 15-2-5 下午10:40
 */
public class Main {

	public static void main(String [] args) {
		for (int i = 0; i < 1000; i++) {
			new Thread(new MyTask("Test No Thread Pool " + i)).start();
		}

		for (int i = 0; i < 1000; i++) {
			ThreadPool.getInstance().start(new MyTask("Test Thread Pool " + i));
		}
	}
}
